package com.isyscore.os.driver;


import com.isyscore.os.driver.core.utils.ConvertUtil;

/**
 * @author stw
 */
public class Utils {
    public static float bytesToFloat(byte[] bytes){
        return Float.intBitsToFloat(ConvertUtil.bytesToInt(bytes));
    }

    @SuppressWarnings("unused")
    public static byte[] floatToBytes(float f){
        return ConvertUtil.intToBytes(Float.floatToRawIntBits(f));
    }

}
